<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>

<%
	String target = null;
	String targetSubMenu = null;
	
	String mainURL = "";
	String subMenuURL = "";
	
	target = request.getParameter("url");
	//targetSubMenu = request.getParameter("url_menu");
	
	if(target == null)
	{
		mainURL = "/main.jsp";
		subMenuURL = "";
	} else {
		if(target.equals("home")) {
			mainURL = "main.jsp";
			subMenuURL = "submenu.jsp";
		}
		if(target.equals("site")) {
			mainURL = "site/site_intro.jsp";
			subMenuURL = "site/site_menu.jsp";
		}
		if(target.equals("railro")) {
			mainURL = "railro/rail_intro.jsp";
			subMenuURL = "railro/rail_menu.jsp";
		}
		if(target.equals("local")) {
			mainURL = "local/local_seoul.jsp";
			subMenuURL = "local/local_menu.jsp";
		}
		if(target.equals("service")) {
			mainURL = "service/service_FAQ.jsp";
			subMenuURL = "service/service_menu.jsp";
		}
		
		if(target.equals("mypage")) {
			mainURL = "mypage/mypage_scrap.jsp";
			subMenuURL = "mypage/mypage_menu.jsp";
		}
		if(target.equals("login")) {
			mainURL = "login/login.jsp";
			subMenuURL = "submenu.jsp";
		}
		if(target.equals("join")) {
			mainURL = "login/join.jsp";
			subMenuURL = "submenu.jsp";
		}
	}
%>

<jsp:forward page="template.jsp">
    <jsp:param name="CONTENT" value="<%=mainURL %>" />
    <jsp:param name="SUBMENU" value="<%=subMenuURL %>" />
</jsp:forward>

</body>
</html>